package me.firstapp.repository.weixin.product;

import java.util.List;
import java.util.Map;

import me.firstapp.common.utils.Page;
import me.firstapp.module.weixin.product.ProductSku;
import me.firstapp.repository.base.EntityRepository;

public interface ProductSkuRepository extends EntityRepository<ProductSku> {

	Page<ProductSku> findProductSkuPage(Integer pageNo, Integer pageSize, Map<String, Object> searchParams,
			String sortParam, String sortType, Long productId);

	List<ProductSku> findByProductId(Long productId);

	ProductSku findByProductIdAndSkuName(Long productId, String skuName);

	ProductSku findByProductIdAndDefault(Long productId);
}
